package com.yf.exam.modules.trainingarchives.organization.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
@Data
@ApiModel(value="OrganizationDTO对象", description="机构管理DTO")
public class OrganizationDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "机构ID")
    private String id;

    @ApiModelProperty(value = "机构名称")
    @NotBlank(message = "机构名称不能为空")
    private String name;

    @ApiModelProperty(value = "机构账号")
    @NotBlank(message = "账号不能为空")
    private String account;

    @ApiModelProperty(value = "机构密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "营业执照")
    @NotBlank(message = "营业执照不能为空")
    private String license;

    @ApiModelProperty(value = "营业执照编码")
    @NotBlank(message = "营业执照编码不能为空")
    private String licenseCode;

    @ApiModelProperty(value = "机构联系电话")
    @NotBlank(message = "机构联系电话不能为空")
    private String phone;

    @ApiModelProperty(value = "机构地址")
    private String address;

}
